#define _CRT_SECURE_NO_WARNINGS 1
#include<iostream>
using namespace std;

class A
{
public:
	int a=1;
	//virtual void f() {};
};

class B :virtual public A
{
public:
	int b=2;
	//virtual void f1() {};
};

class C :virtual public A
{
public:
	int c=3;
	//virtual void f2() {};
};

class D:public B,public C
{
public:
	int d=4;
	//virtual void f3() {};
};

int main()
{
	A a1;
	B b1;
	C c1;
	D d1;
	static int aa = 1;
	const int a=1;
	string s = "yzc";
	cout << &(aa) << endl;
	cout << &(a) << endl;
	cout << &(s) << endl;
	return 0;
}